<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserList.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.UserList" %>
<div style="text-align:center;height:20px;width:300px">
    <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium"/>
</div>
<div style="overflow:auto; height:300px;" >
    <asp:Panel ID="pnlList" runat="server" Visible="true" CssClass="frame">  
        <asp:GridView ID="gvObject" runat="server" AutoGenerateColumns="False"
            CellPadding="3"  OnRowCommand="gvObject_RowCommand" BackColor="gray" BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CellSpacing="1" GridLines="None" >
            <FooterStyle BackColor="#00000" ForeColor="Black" />
            <Columns>
                <asp:TemplateField HeaderText="Name">
                    <ItemTemplate>
                        
                <asp:Label ID="lblName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'></asp:Label>
                   </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="Description">
                    <ItemTemplate>
                       <asp:Label ID="lblDescrption" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Description") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="Action">                                
                    <ItemTemplate>
                        <asp:ImageButton ID="imgEdit" ImageUrl="~/Admin/Images/edit.gif"  runat="server"   CommandName="editUser" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />
                <asp:ImageButton ID="ingDelete" ImageUrl="~/Admin/Images/delete.gif" runat="server" OnClientClick="return confirm('Are you sure you want to delete?');"  CommandName="delUser" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>                                   
                                                                          
            </Columns>
            <RowStyle BackColor="#ffffff" ForeColor="Black" />
            <SelectedRowStyle BackColor="Gray" Font-Bold="True" ForeColor="Gray" />
            <PagerStyle BackColor="#ffffff" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#ffffff" Font-Bold="True" ForeColor="#000000" />            
        </asp:GridView>
    </asp:Panel>        
</div>